Ext.define('TS.view.general.denomination.Form', {
    extend: 'TS.lib.Form',
    alias : 'widget.denominationform',
    title : 'Denominacja',
	url:URL.general.form.denomination,
	items:[
		{xtype:'hidden',name:'denomination_id'},
		{xtype:'text',fieldLabel:'denomination_name',name:'denomination_name'}
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			Dict.denomination.load();
			Util.store('Denomination').load();
		}
	},{
		text:'Nowy',
		handler:Util.f.clear
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.general.del.denomination
		}
	}]
});